var color= 'blue';
function changeColor(){
    if(color === 'blue'){
        color= "red"
    } else {
        color= 'blue'
    }
}
console.log(color);
changeColor();
console.log(color);